<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Authorization</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px;
            text-align: center;
        }

        h3 {
            margin-bottom: 20px;
            color: #333;
        }

        p {
            margin-bottom: 20px;
            color: #666;
        }

        .btn {
            background-color: #007bff;
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 10px;
        }

        .btn:hover {
            background-color: #0056b3;
        }

        form {
            margin-top: 20px;
        }
    </style>
</head>
<body>
<div class="container">
    <h3 th:text="${clientId} + ' 请求授权，该应用将获取你的以下信息'"></h3>
    <p>昵称，头像和性别</p>
    <p>授权后表明你已同意 0AUTH-BOOT 服务协议</p>
    <form method="post" action="/oauth/authorize">
        <input type="hidden" name="user_oauth_approval" value="true">
        <div th:each="item : ${scopes}">
            <input type="radio" th:name="'scope.' + ${item}" value="true" hidden="hidden" checked="checked">
        </div>
        <button class="btn" type="submit">同意/授权</button>
    </form>
</div>
</body>
</html>
